package com.dexgdx.game.util.trajectory.node;

import com.dexgdx.game.constants.EMoveDirection;
import com.dexgdx.game.util.trajectory.Trajectory;


public class SouthWestTrajectoryNode extends TrajectoryNode {

	@Override
	public TrajectoryNode initalizeFrom(Trajectory trajectory) {
		x = trajectory.getDirectionSpeed() * -1;
		y = trajectory.getDirectionSpeed();
		direction = EMoveDirection.SOUTH_WEST;
		return this;
	}
	
	@Override
	public TrajectoryNode clone() {
		SouthWestTrajectoryNode trajectory = new SouthWestTrajectoryNode();
		trajectory.setFromPoint(this);
		return trajectory;
	}
}
